home *** CD-ROM | disk | FTP | other *** search
- Path: news.uit.no!news
- From: nilss@stud.cs.uit.no (Nils Peter Sudmann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Removing a patch -A POSSIBLE SOULTION
- Date: 07 Feb 96 17:56:29 +0100
- Organization: University of Tromsoe, Norway
- Message-ID: <1127.6611T1076T1485@stud.cs.uit.no>
- References: <1996Feb5.162318.23977@ludens>
- NNTP-Posting-Host: uit-or8.uit.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- On 05-Feb-96 15:23:18, genie (genie@ludens.elte.hu) wrote:
- >>>The code for the patch which is SetFunctioned somewhere looks like this:
- >>
- >>>PatchMan: addq #1,UseCount ;how many tasks using this patch?
- >> ^^^^^^^^^^^^^^^^^
- >> This does really not help a lot if you want your progam to be 100% safe.
- >> Still, it does decrease the chance of crashes. The problem is that a
- >> process switch could (at least in teory) occur right after the PC was
- >> loaded with the address of your routine, but before actually executing the
- >> first instruction in it.
-
- >I don't think it's a problem, because the PatchMan routine stays in memory
- >"forever", which is a really tiny piece of code, but I can safely free up
- >the memory allocated for the main patch code (to which this PatchMan later
- >gives control).
-
- Sorry, I though it was the PatchMan code which was removed. If it stays in
- memory it is perfectly ok.
-
- --
- Nils Peter Sudmann // Using Thor v2.21/#1113, sign v1.5
- "Truth, a random variable possibly // EMAIL: nilss@stud.cs.uit.no
- containing complex numbers" // WWW: http://www.cs.uit.no/~nilss
-
-
-